package com.example.SpringBoot_demo.mapper;

import com.example.SpringBoot_demo.bean.BlackUser;
import com.example.SpringBoot_demo.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BlacklistMapper {
    List<BlackUser> viewBlackList(int page, int numb);

    List<BlackUser> searchBlackUser(String id,String name);

    void deleteBlackUser(String userid);

    void updateBlackList(String userid,String changeFlag);

    void addBlackUser(String userid,String username);
    List<User> viewUserList(int page, int numb);
    int countPage(@Param("listname") String listname);
    List<User> searchUser(String id,String name);
}
